﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;

/// <summary>
/// Summary description for PageConfig
/// </summary>
public class PageConfig
{
    public int PageId { get; set; }
    public string PageName { get; set; }
    public string PageTitle { get; set; }
    public int AccessCode { get; set; }
    public PageConfig() { }
	public PageConfig(XmlNode pageConfig)
	{
        this.PageId = Convert.ToInt32(pageConfig.Attributes[Constants.PageConfig.ATTRIB_PAGEID].Value);
        this.PageName = pageConfig.Attributes[Constants.PageConfig.ATTRIB_PAGENAME].Value;
        this.PageTitle = pageConfig.Attributes[Constants.PageConfig.ATTRIB_PAGETITLE].Value;
        this.AccessCode = Convert.ToInt32(pageConfig.Attributes[Constants.PageConfig.ATTRIB_PAGEACCESSCODE].Value);
    }

    public enum Pages
    {
        AdminDefault = 11,
        AdminUserDefault = 12,
        AdminUserAddEdit = 13,
        AdminUserResetPwd = 14,
        AdminSupplierDefault = 15,
        AdminSupplierAddEdit = 16,

        SupplierDefault = 21,
        SupplierLocationDefault = 22,
        SupplierLocationAddEdit = 23,
        SupplierVehicle = 24,

        AdminCountryDefault = 31,
        AdminCountryAddEdit = 32,
        AdminRegionDefault = 33,
        AdminRegionAddEdit= 34,
        AdminLocationDefault = 35,
        AdminLocationAddEdit= 36,

        SupplierMaster = 41

        
    }
}
